﻿using System;
using System.Data;
using System.Data.SqlClient;

namespace Coogle.DataAccess
{
    public interface IQuery<TInput, TOutput>
    {
        SqlCommand CreateCommand(SqlConnection connection);
        TOutput Map(TInput source);
    }

    public interface IFindOneQuery<TOutput> : IQuery<DataRow, TOutput>
    {
    }

    public interface IFindQuery<TOutput> : IQuery<DataTable, TOutput>
    {
    }
}